import request from '@/utils/request'
const baseUrl = '/cz-auth/api/v1/companyLogins' // 短信验证-- 注册登录
// @baseUrl = http://192.168.0.220:9999/cz-auth/api/v1
// import {sms_code_identity,sms_code_conservator,sms_code_tourist } from '@/api/sms/index' 

/* 企业注册法人短信验证码
* @param {String} mobile 手机号
*/
export const sms_code_identity = (param: any) => { 
  console.log('param',param)
  return request({
    url: baseUrl+'/sms_code_identity',
    method: 'post',
    params: param
  })
}

export const smsCodeIdentity = (param: any) => { 
  return request({
    url: baseUrl+'/sms_code_identity?mobile='+ param,
    method: 'GET'
  })
}

/* 企业注册管理员短信验证码
* @param {String} mobile 手机号
*/
export const sms_code_conservator = (param: any) => { 
  return request({
    url: baseUrl+'/sms_code_conservator',
    method: 'post',
    params: param
  })
}

/* 游客注册短信验证码
* @param {String} mobile 手机号
*/
export const sms_code_tourist = (params: any) => {
  return request({
    url: baseUrl+'/sms_code_tourist',
    method: 'post',
    params: params
  })
}


// ###
// # 企业注册法人短信验证码
// # POST {{baseUrl}}/auth/sms_code_identity
// POST {{baseUrl}}/auth/sms_code_identity?mobile=13217819203
// Content-Type: {{contentType}}
// Authorization:{{token}}

// ###

// ###
// # 企业注册管理员短信验证码
// # POST {{baseUrl}}/auth/sms_code_conservator
// POST {{baseUrl}}/auth/sms_code_conservator?mobile=13217819203
// Content-Type: {{contentType}}
// Authorization:{{token}}

// ###

// ###
// # 游客注册短信验证码
// # POST {{baseUrl}}/auth/sms_code_tourist
// POST {{baseUrl}}/auth/sms_code_tourist?mobile=13217819203
// Content-Type: {{contentType}}
// Authorization:{{token}}
